package String;

public class StringBuilderDemo {
    public static void main(String[] args) {
       /* StringBuilder builder = new StringBuilder();
        StringBuilder builder1 = new StringBuilder("abc");
        String str = "abc";
        StringBuilder builder2 = new StringBuilder(str);
        String str1 = builder2.toString();
        */

        String str = "好好学习Java";
        StringBuilder builder = new StringBuilder(str);
        builder.append("，为了找个好工作");
        System.out.println(builder);
        builder.replace(9,16,"就是为了改变世界");
        System.out.println(builder);

    }
}
